//
//  JXSecurityAlarmRecordModel.h
//  JXIntercomSDK
//
//  Created by Nansen on 2021/8/5.
//  Copyright © 2021 jingxi. All rights reserved.
//

/// 安防报警的记录

#import <Foundation/Foundation.h>
#import "JX_GDataObjectProtocol.h"

NS_ASSUME_NONNULL_BEGIN

@interface JXSecurityAlarmRecordModel : NSObject<JX_GDataObjectProtocol>

@property (nonatomic, copy) NSString *identify;

@property (nonatomic, copy) NSString *homeId;

@property (nonatomic, copy) NSString *userId;

/// 收到报警的时间戳 [13位]
@property (nonatomic, assign) NSInteger receivedTime;

/// 关闭报警的时间. 如果值为0表示没有记录到关闭时间
@property (nonatomic, assign) NSInteger closeTime;

/// SecurityDevice.device_name
@property (nonatomic, copy) NSString *device_name;

/// 房间号 [类似:1期1栋01单元306室] SecurityMessage.room
@property (nonatomic, copy) NSString *room;

/// 具体的报警信息
/** 防区编号 */
@property (nonatomic, assign) NSInteger area;
/** 防区的值 */
@property (nonatomic, assign) NSInteger value;

/** 防区的别名，用于显示 */
@property (nonatomic, copy) NSString *alias;

/** 防区的类型名称，由系统定义 */
@property (nonatomic, copy) NSString *type;


- (NSDate *)receivedDate;

/// closeTime != 0 有值
- (NSDate * _Nullable)closedDate;


@end




NS_ASSUME_NONNULL_END
